﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="MasterPage.master"
    CodeFile="Reconciliation_Invoice.aspx.cs" Inherits="Reconciliation.Web.Reconciliation_Invoice" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Src="~/Users Control/HeadMenu.ascx" TagName="HeadMenu" TagPrefix="uc1" %>
<%@ Register Src="~/Users Control/InvoiceAuditorComments.ascx" TagName="InvoiceAuditorComments"
    TagPrefix="uc1" %>
<%@ Register Src="~/Users Control/Filters.ascx" TagName="ResultFilter" TagPrefix="Flt" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder2" runat="server" ID="ContentMenu">
    <uc1:HeadMenu runat="server" ID="HeadMenu" />
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server" ID="content1">
    <!-- custom head section -->
    <style type="text/css">                
        .MyImageButton
        {
            cursor: hand;
        }
        .EditFormHeader td
        {
            font-size: 14px;
            padding: 4px !important;
            color: #0066cc;
        }
    </style>
    <telerik:RadScriptManager AsyncPostBackTimeout="3600" runat="server" ID="RadScriptManager1">
    </telerik:RadScriptManager>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <style type="text/css">
        #<%=RadGridOrderList.ClientID%> {overflow: visible!important; height: auto!important;}  
        </style>
        <script type="text/javascript">
        function viewCaseViewDetails(id)
        {
            newWindow("OrderDetails.aspx?OrderID="+id, "Order"+id, "800", "650", 0, 1);
        }
         
        </script>

    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager DefaultLoadingPanelID="RadAjaxLoadingPanel1" ID="RadAjaxManager1"
        runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGridOrderList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="multiView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGridDetailView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="multiView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="multiView1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="FilterControl" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="lnkMonthView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel Skin="Vista"  runat="server" ID="RadAjaxLoadingPanel1" />
    <!-- end of custom head section -->
    <%--<telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">--%>
    <asp:Panel ID="pnlMain" runat="server">
        <Flt:ResultFilter runat="server" Visible="true" ID="FilterControl" />
        <telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200"
            HideDelay="5" ID="RadToolTipManager1" Width="300px" Height="180px" RelativeTo="Element"
            Animation="Slide" Position="BottomCenter" OnAjaxUpdate="OnAjaxUpdate" Skin="Windows7"
            HideEvent="ManualClose" ContentScrolling="Auto" />
        <asp:MultiView ID="multiView1" ActiveViewIndex="0" runat="server">
            <asp:View ID="View1" runat="server">
                <telerik:RadGrid PageSize="10" AllowAutomaticUpdates="True" OnPageSizeChanged="RadGridOrderList_PageSizeChanged"
                    OnPageIndexChanged="RadGridOrderList_PageIndexChanged" OnSortCommand="RadGridOrderList_SortCommand"
                    AllowPaging="true" runat="server" OnItemDataBound="RadGridOrderList_ItemDataBound"
                    EditItemStyle-BackColor="AliceBlue" OnItemCommand="RadGridOrderList_ItemCommand"
                    ID="RadGridOrderList" AutoGenerateColumns="False" GridLines="None" AllowSorting="True"
                    EnableLinqExpressions="False">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView EditMode="EditForms" Width="100%" DataKeyNames="InvoiceID">
                        <Columns>
                            <telerik:GridTemplateColumn ReadOnly="true" HeaderText="<%$ Resources:Lang, Month%>"
                                SortExpression="InvoiceDate" UniqueName="InvoiceMonth">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkDetailView" CommandName="DetailView" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.InvoiceID") %>'
                                        runat="server" Text='<%#GetMonthName(Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"InvoiceDate")), false) %>'></asp:LinkButton>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn ReadOnly="true" DataField="MsmShortage" DataType="System.Double"
                                DataFormatString="{0:C}" HeaderText="<%$ Resources:Lang, MSM_Shortage%>" AllowFiltering="false"
                                SortExpression="MsmShortage" UniqueName="MsmShortage">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn ReadOnly="true" DataField="ClientShortage" HeaderText="<%$ Resources:Lang, Client_Shortage%>"
                                AllowFiltering="false" DataType="System.Double" DataFormatString="{0:C}" SortExpression="ClientShortage"
                                UniqueName="ClientShortage">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn ReadOnly="true" HeaderText="<%$ Resources:Lang, Invoice_Date%>"
                                SortExpression="InvoiceDate" UniqueName="InvoiceDate" DataType="System.DateTime">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblInvDate" Text='<%#BasePage.FormatDate(Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"InvoiceDate"))) %>' />                                    
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>                            
                            <telerik:GridBoundColumn DataField="AmountPaid" DataType="System.Double" DataFormatString="{0:C}"
                                HeaderText="<%$ Resources:Lang, Amount_Paid%>" AllowFiltering="false" SortExpression="AmountPaid"
                                UniqueName="AmountPaid">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn ReadOnly="true" HeaderText="<%$ Resources:Lang, Amount_Status%>"
                                SortExpression="InvoiceType" UniqueName="InvoiceType">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblPaidStatus" Text='<%#DataBinder.Eval(Container.DataItem,"InvoiceType")==null ? "" : Convert.ToString(DataBinder.Eval(Container.DataItem,"InvoiceType"))=="Full" ? "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Fully_Paid.png\" border=\"0\"></div>" : "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Partially_Paid.png\" border=\"0\"></div>" %>' />
                                    &nbsp;
                                    <asp:Label runat="server" ID="lblPaidDate" Text='<%#DataBinder.Eval(Container.DataItem,"StatusDate")==null ? "" : BasePage.FormatDate(Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"StatusDate"))) %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="<%$ Resources:Lang, Amount_Due%>" UniqueName="AmountDue">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblAmountDue" Text='<%#(Convert.ToDecimal(DataBinder.Eval(Container.DataItem,"ClientShortage")) - Convert.ToDecimal(DataBinder.Eval(Container.DataItem,"AmountPaid"))).ToString("c")%>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn ItemStyle-Width="20" UniqueName="AuditorComments">
                                <ItemTemplate>
                                    <asp:HiddenField runat="server" ID="hiddInvoiceID" Value='<%# DataBinder.Eval(Container, "DataItem.InvoiceID") %>' />
                                    <asp:LinkButton runat="server" OnClientClick="void(0); return false;" ID="lnkComment">
                                        <asp:Label runat="server" Width="20" ID="lblComment" Text='<%#DataBinder.Eval(Container.DataItem,"InvoiceType")==null ? "" : Convert.ToString(DataBinder.Eval(Container.DataItem,"InvoiceType"))=="Full" ? "" : "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Comment_Auditor.png\"  border=\"0\"></div>" %>' /></asp:LinkButton><!-- tooltip code block --><!-- tooltip block end --></ItemTemplate></telerik:GridTemplateColumn><telerik:GridTemplateColumn ItemStyle-Width="20" UniqueName="EditCommandColumn">
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="Edit" ToolTip="Edit"
                                        Visible='<%#User.IsInRole("All")%>'><img style="border:0px" alt="Edit Selected Invoice" src="images/icons/edit.gif" height="15" width="15" /></asp:LinkButton><asp:LinkButton
                                            ID="btnUpdateEdited" ToolTip="Save" Visible="false" runat="server" CommandName="Update"><img style="border:0px" alt="" src="images/icons/Invoice_Save.png" /></asp:LinkButton><asp:LinkButton
                                                ID="btnEditCancel" ToolTip="Cancel" runat="server" Visible="false" CommandName="Cancel"><img style="border:0px" alt="" src="images/icons/Case_Close.png" /></asp:LinkButton></ItemTemplate></telerik:GridTemplateColumn></Columns><EditFormSettings ColumnNumber="8" EditFormType="Template" CaptionDataField="InvoiceID"
                            CaptionFormatString="Edit Invoice {0}">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                            <FormTemplate>
                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td width="50%" style="padding-left: 5px;">
                                            <asp:Label runat="server" ID="lblAuditor" Text="<%$ Resources:Lang, Auditor%>" Font-Bold="true" />
                                        </td>
                                        <td width="50%">
                                            <asp:Label runat="server" ID="Label1" Text="<%$ Resources:Lang, Comment%>" Font-Bold="true" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table width="100%" cellpadding="2" cellspacing="2" border="0">
                                                <tr>
                                                    <td width="80">
                                                        <asp:Label runat="server" ID="Label2" Text="<%$ Resources:Lang, Amount_Paid%>" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox runat="server" ID="txtAmountPaid" Width="80" Text='<%# DataBinder.Eval(Container, "DataItem.AmountPaid") %>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="80">
                                                        <asp:Label runat="server" ID="Label3" Text="<%$ Resources:Lang, First_Name%>" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox runat="server" ID="txtFirstName" Width="300" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="80">
                                                        <asp:Label runat="server" ID="Label4" Text="<%$ Resources:Lang, Last_Name%>" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox runat="server" ID="txtLastName" Width="300" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtComment" TextMode="MultiLine" Columns="70" Height="70" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2">
                                            <%--<asp:ImageButton runat="server" ID="btnUpdate" ImageUrl="~/images/icons/Invoice_Save.png" BorderWidth="0" />
                                    <asp:ImageButton runat="server" ID="btnCancel" ImageUrl="~/images/icons/Case_Close.png" BorderWidth="0" />--%> <asp:Button ID="btnUpdate" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.InvoiceID") %>'
                                                Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server"
                                                CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                            </asp:Button>&nbsp; <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                CommandName="Cancel"></asp:Button>
                                        </td>
                                    </tr>
                                </table>
                            </FormTemplate>
                        </EditFormSettings>
                    </MasterTableView>
                </telerik:RadGrid>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="200px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor2" runat="server" TextBoxStyle-Width="150px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <telerik:GridDropDownListColumnEditor ID="GridDropDownColumnEditor1" runat="server"
                    DropDownStyle-Width="110px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor1" runat="server" NumericTextBox-Width="40px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                </telerik:RadWindowManager>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
                &nbsp;&nbsp;&nbsp;</asp:View><asp:View runat="server" ID="View2">
                <asp:Panel ID="pnl2" runat="server">
                    
                    <div style="height: 25px; ">
                        <asp:LinkButton runat="server" ID="lnkMonthView" Text="&lt; Return to Monthly View"
                            OnClick="lnkMonthView_Click" /></div>
                    <table  width="100%" style="border: solid 1px #999999; ">
                        <tr>
                            <td>
                                <b>
                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Lang, Month %>"></asp:Literal></b></td><td>
                                <b>
                                    <asp:Literal ID="Literal2" Text="<%$ Resources:Lang,MSM_Shortage %>" runat="server"></asp:Literal></b></td><td>
                                <b>
                                    <asp:Literal ID="Literal3" Text="<%$ Resources:Lang , Client_Shortage %>" runat="server"></asp:Literal></b></td><td>
                                <b>
                                    <asp:Literal ID="Literal4" Text="<%$ Resources:Lang ,Invoice_Date %>" runat="server"></asp:Literal></b></td><td>
                                <b>
                                    <asp:Literal ID="Literal5" Text="<%$ Resources:Lang ,Amount_Paid %>" runat="server"></asp:Literal></b></td><td>
                                <b>
                                    <asp:Literal ID="Literal6" Text="<%$ Resources:Lang,Amount_Status %>" runat="server"></asp:Literal></b></td><td>
                                <b>
                                    <asp:Literal ID="Literal7" Text="<%$ Resources:Lang,Amount_Due %>" runat="server"></asp:Literal></b></td><td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMonth" runat="server"></asp:Label></td><td>
                                <asp:Label ID="lblMSMShortage" runat="server"></asp:Label></td><td>
                                <asp:Label ID="lblClientShortage" runat="server"></asp:Label></td><td>
                                <asp:Label ID="lblInvoiceDate" runat="server"></asp:Label></td><td>
                                <asp:Label ID="lblAmountPaid" runat="server"></asp:Label></td><td>
                                <asp:Label ID="lblAmountStatus" runat="server"></asp:Label></td><td>
                                <asp:Label ID="lblAmountDue" runat="server"></asp:Label></td><td>
                                <asp:LinkButton runat="server" OnClientClick="void(0); return false;" ID="lnkDetailViewClientComment">
                                    <asp:Label runat="server" ID="lblClientComment"></asp:Label>
                                </asp:LinkButton></td></tr></table><div style="height: 20px;">
                        &nbsp;</div><asp:HiddenField runat="server" ID="hddInvoiceID" />
                    <telerik:RadGrid ID="RadGridDetailView" OnPageIndexChanged="RadGridDetailView_PageIndexChanged"
                        OnSortCommand="RadGridDetailView_SortCommand" OnItemDataBound="RadGridDetailView_ItemDataBound"
                        runat="server" AllowPaging="True" HeaderStyle-Font-Bold="true"  Height="400px"
                        AllowSorting="True" AutoGenerateColumns="False" GridLines="None">
                        <MasterTableView>
                            <Columns>
                                <telerik:GridTemplateColumn HeaderStyle-Width="7%"  SortExpression="OrderID" HeaderText="<%$ Resources:Lang,OrderID %>"
                                    UniqueName="OrderID">
                                   
                                    <ItemTemplate>
                                        <asp:HyperLink runat="server" ID="lnkViewDetails" NavigateUrl="javascript:void(0)"
                                            Text='<%#(Convert.ToString(DataBinder.Eval(Container.DataItem,"OrderID")))%>' /></ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn  HeaderStyle-Width="38%" UniqueName="MSM">
                                
                                    <HeaderTemplate>
                                        <center>
                                            <table cellspacing="0" width="100%">
                                                <tr>
                                                    <td colspan="3" align="center" style="font-weight: bold; font-size:14px; font-stretch:ultra-expanded">
                                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Lang , MSM %>"></asp:Literal></td></tr><tr>
                                                    <td style="width: 45%;">
                                                        <asp:LinkButton Font-Bold="true" ID="btnSMSDifference" Text="<%$ Resources:Lang,Difference %>"
                                                            ToolTip="<%# Resources.Lang.Sort_by + ' ' + Resources.Lang.Difference  %>" CommandName='Sort' CommandArgument='CitDifference'
                                                            runat="server" />
                                                    </td>
                                                    <td style="width: 10%;">
                                                        <asp:LinkButton Font-Bold="true" ID="btnSMSComment" Text="<%$Resources:Lang,Comment %>" runat="server" />
                                                    </td>
                                                    <td style="width: 45%;">
                                                        <asp:LinkButton Font-Bold="true" ID="btnSMSPersonnel" Text="<%$ Resources:Lang,Personnel %>"
                                                            ToolTip="<%# Resources.Lang.Sort_by + ' ' + Resources.Lang.Personnel  %>" CommandName='Sort' CommandArgument='CitPersonnel' runat="server" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </center>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <center>
                                            <table width="100%" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 45%">
                                                        <%# Eval("CitDifference")%> </td><td style="width: 10%;">
                                                        <asp:LinkButton runat="server" OnClientClick="void(0); return false;" ID="lnkAuditorComment">
                                                            <asp:Label runat="server" ID="lblAuditorComment" Text='<%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isAuditorCommented")) ? "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Comment_Auditor.png\"  border=\"0\"></div>" : "" %>' /></asp:LinkButton></td><td style="width: 45%">
                                                        <%# Eval("CitPersonnel")%> </td></tr></table></center></ItemTemplate></telerik:GridTemplateColumn><telerik:GridTemplateColumn   HeaderStyle-Width="45%" UniqueName="Client">
                             
                                    <HeaderTemplate >
                                        <center>
                                            <table cellspacing="0" cellpadding="0" width="100%">
                                                <tr>
                                                    <td colspan="3" align="center" style="font-weight: bold;font-size:14px; font-stretch:ultra-expanded  ">
                                                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Lang, Client %>"></asp:Literal></td></tr><tr>
                                                    <td style="width: 40%;">
                                                        <asp:LinkButton ID="btnDifference" Text="<%$ Resources:Lang,Difference %>" ToolTip="<%# Resources.Lang.Sort_by + ' ' + Resources.Lang.Difference  %>"
                                                            CommandName='Sort' Font-Bold="true" CommandArgument='ClientDifference' runat="server" />
                                                    </td>
                                                    <td style="width: 20%;">
                                                        <asp:LinkButton  Font-Bold="true" ID="btnComment" Text="<%$Resources:Lang,Comment %>" runat="server" />
                                                    </td>
                                                    <td style="width: 40%;">
                                                        <asp:LinkButton ID="btnPersonnel" Text="<%$ Resources:Lang,Personnel %>" ToolTip="<%# Resources.Lang.Sort_by + ' ' + Resources.Lang.Personnel  %>"
                                                            CommandName='Sort' Font-Bold="true" CommandArgument='clientPersonnel' runat="server" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </center>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <center>
                                            <table cellspacing="0" width="100%">
                                                <tr>
                                                    <td style="width: 40%;">
                                                        <%# Eval("ClientDifference")%> </td><td style="width: 20%;">
                                                        <asp:LinkButton runat="server" OnClientClick="void(0); return false;" ID="lnkClientComment">
                                                            <asp:Label runat="server" ID="lblClientComment" Text='<%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isClientCommented")) ? "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Comment_Client.png\"  border=\"0\"></div>" : "" %>' /></asp:LinkButton></td><td style="width: 40%">
                                                        <%#Eval("clientPersonnel")%> </td></tr></table></center></ItemTemplate>
                                                        </telerik:GridTemplateColumn><telerik:GridTemplateColumn   HeaderStyle-Width="10%" HeaderStyle-Font-Bold="true"    SortExpression="CaseStatus" HeaderText="<%$ Resources:Lang,Case_Status %>"
                                    UniqueName="CaseStatus">
                                    
                                    <ItemTemplate >
                                        <asp:Label runat="server" ID="lblCaseStatus" Text='<%#DataBinder.Eval(Container.DataItem,"CaseStatus")=="Open" ? "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Case_Open.png\" border=\"0\"></div>" : Convert.ToString(DataBinder.Eval(Container.DataItem,"CaseStatus"))=="Close" ? "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Case_Close.png\" border=\"0\"></div>" :Convert.ToString(DataBinder.Eval(Container.DataItem,"CaseStatus"))=="AwaitingInfo"? "<div style=\"text-align:center; float:left; padding:1px;\"><img src=\"images/icons/Case_AwaitingInfo.png\" border=\"0\"></div>" :"" %>' />
                                        &nbsp; <asp:Label runat="server" ID="lblCaseDate" Text='<%#DataBinder.Eval(Container.DataItem,"StatusDate")==null ? "" : BasePage.FormatDate(Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"StatusDate"))) %>' />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </asp:Panel>
            </asp:View>
        </asp:MultiView>
    </asp:Panel>
    <%--</telerik:RadAjaxPanel>--%> </asp:Content>